/*
 * @Author: 许旺玉
 * @Description: 商品接口
 * @Date: 2020-06-28 13:11:43
 * @LastEditTime: 2020-07-05 18:55:34
 * @LastEditors: Please set LastEditors
 */ 
import { ajaxGet } from '@/utlis/request.js'

export function goods(params) {  //商品列表(热销/特惠接口)
    const url = 'goods'
    return ajaxGet(url, params)
}

export function detail(params) {  //商品详情
    const url = `goods/detail/${params}`
    return ajaxGet(url, params)
}

export function keywords(params) {  //热门搜索
    const url = 'keywords'
    return ajaxGet(url, params)
}

export function category(params) {  //商品分类
    const url = 'goods/category'
    return ajaxGet(url, params)
}

export function category_comment(params) {  //商品评论列表
    const url = 'goods/comment/3'
    return ajaxGet(url, params)
}

export function sku_price(params) {  //商品评论列表
    const url = 'goods/sku-price'
    return ajaxGet(url, params)
}

